Endgame working (but crashes)