combined board.js and game.js