IsGameEnd implementation