correctPointersForVisualization(nextStep) {
        for (var i = 0; i < this.pointersForVisualization.size(); i++) {
            var pointer = this.pointersForVisualization.getPointer(i);
            var nextStepPointer = nextStep.getPointersForStep().getPointer(i);
            if (pointer.getName() === nextStepPointer.getName()) {
                pointer.setPointeePosition(nextStepPointer.getPointeePosition());
                pointer.setPointeeReference(nextStepPointer.getPointeeReference());
            } else
                window.alert("LOOK AT ME");
        }
    }
/**
     * modify the pointers references and pointee location for the next step
     * @param {VisualizationStep} nextStep the next step to be used to correct the pointers in the current visualized linked list
     */
modify the pointers references and pointee location for the next step
@param {VisualizationStep} nextStep the next step to be used to correct the pointers in the current visualized linked list
modify the pointers references and pointee location for the next step @param { VisualizationStep } nextStep the next step to be used to correct the pointers in the current visualized linked list
correctPointersForVisualization(nextStep) {
        for (var i = 0; i < this.pointersForVisualization.size(); i++) {
            var pointer = this.pointersForVisualization.getPointer(i);
            var nextStepPointer = nextStep.getPointersForStep().getPointer(i);
            if (pointer.getName() === nextStepPointer.getName()) {
                pointer.setPointeePosition(nextStepPointer.getPointeePosition());
                pointer.setPointeeReference(nextStepPointer.getPointeeReference());
            } else
                window.alert("LOOK AT ME");
        }
    }
correctPointersForVisualization ( nextStep ) { for ( var i = 0 ; i < this . pointersForVisualization . size ( ) ; i ++ ) { var pointer = this . pointersForVisualization . getPointer ( i ) ; var nextStepPointer = nextStep . getPointersForStep ( ) . getPointer ( i ) ; if ( pointer . getName ( ) === nextStepPointer . getName ( ) ) { pointer . setPointeePosition ( nextStepPointer . getPointeePosition ( ) ) ; pointer . setPointeeReference ( nextStepPointer . getPointeeReference ( ) ) ; } else window . alert ( "LOOK AT ME" ) ; } }
modify the pointers references and pointee location for the next step
 @param {VisualizationStep} nextStep the next step to be used to correct the pointers in the current visualized linked list
modify the pointers references and pointee location for the next step @param { VisualizationStep } nextStep the next step to be used to correct the pointers in the current visualized linked list