added the Game Over logic