Added sub-board winning, better logging, and started saneifying view.js