Refactored to be terrible

Not sure what I was thinking here, but I just ended up making a bunch of stuff
global. Guess I thought it was a good idea at the time... anyways, looks like
I need to go un-stupify what I just did. Perhaps my lack of go-mastery is
clouding my judgement. Anyways... til next time.