added gameEnds method