created board.js and tests