improves game logic