Started working on actually solving algorithm

Saving state is going to be a REAL pain.
Recursion is a bitch