game logic correction