Moved stuff to board.hs

Moved board functions into their own file. Nothing is working since it
is not imported into the main hex file