endgame added / other fixes