added endgame interface