bug fix in game logic and game over modal added