Fixed in-game logic.