game logic fix