Fixed #4, allow changing game mode state while in-game, update for newest pocketmine