update game logic