Validation of board size and error flash

Should probably put some limit on the board size as browser struggles
with thousands of squares. Or replace DOM elements with canvas but
that's a whole other thing.