If anyone wants, I can post the code I have to this thread. Also, I stored the moves in a giant nested list, where each nest of the list represents all the possible next moves of the parent list.
Code Select
(parent
(child
(child child))
(child
(child
(child child child))
child)))
There's a little more to it, but that's the gist of it. The file that contains this list is 14 megabytes!