* Refactored game over logic