Consolidation of game over logic into onGameOver method