Fixed a bug in the game.