for (int i = length() - 1; i >= 0; i--) { final MoveStep step = getStep(i); if (step.checkIllegal(game, entity)) { continue; } break; }
compileLastStep(true);
    public void compileLastStep() {        for (int i = length() - 1; i >= 0; i--) {            final MoveStep step = getStep(i);            if (step.checkIllegal(game, entity)) {                continue;            }            break;        }    }