Refactored scheme editor; now using box logics from equares-box.js