Update board.js

refactor rename of variables