Finished checkwin

Ending algorithm ended up being O(1) for checking for a win! Insertion
was increased to O(m) though, where m is the number of nodes that you
are linking into the current "color chain". Some specs might have
changed but I'm pretty sure it should be really easy to merge.