Endgame stuff getting ready. Also fixed a bug.

-Steven