The start of some logic for the board.  Also some tests.