adding endgame stuff