fixing end game