Gets the error that was set
GameError? get error => state;
Sets the error state
set error(GameError? err) { state = err; }