Call gameHasEnded when the game has ended.