Updated game logic.