game logic fixed