game logic update