THE MONSTROSITY IS SLAIN

So that big stupid blob of code was me being all big and stupid. It's
now gone. I haven't used the state monad yet, but it's still a huge
improvement. Almost 60 lines of code gone. ^_^