Update game logic.