Oops!

Accidentally deleted about 1/3 my code! Good thing the pseudocode (which was the hard part) was backed up?