fixed endGame again.