Win detection.  Doesn't stop game yet.
Restructure to make functions work for an arbitrary board.