cleaned up board.c and board.h