modified game logic