Update isGameOver Method