fixed non-functional game end checks