updated game logic a bit