Concise go

I made a number of changes that both shorten it and (in my opinion) simplify it.

Also, I use a set for `past_boards`, so searching through it for repetitions should be much more efficient in the later game.