modified game over logic