cleaned and commented board.js

Commented board.js
added some TODO: comments