changes to board-engine.js