steps.insertElementAt(new MoveStep(this, lateralShiftForTurn(stepType)), index);
MoveStep shift = new MoveStep(this, lateralShiftForTurn(stepType)); steps.insertElementAt(shift, index); rePrev();
    public void transformLateralShifts() {        int index;        while ((index = firstLateralShift()) != -1) {            int stepType = getStep(index).getType();            steps.removeElementAt(index);            steps.removeElementAt(index);            steps.removeElementAt(index);            steps.insertElementAt(new MoveStep(this, lateralShiftForTurn(stepType)), index);        }    }