public void removeAllBoxes(){
         // Empty openPath ArrayList
        if(!openPath.isEmpty()){
            openPath.clear();
        }

        // Empty segments ArrayList
        if(!segments.isEmpty()){
            segments.clear();
        }
        this.nSeg = 0;
        this.checkNoMix = true;
        this.checkPath = false;
        this.nBoxes = 0;
        this.checkConsolidate = false;
        this.adcs = null;
        this.dacs = null;
        this.zeroHolds = null;

    }