added endgame, ending