Controlling the game with a GameState class