Corrected end of game error