added board.js-changed some function-selection check, reselction working