Added state control methods for the GameState class.