if (this.getLastStep() != null) {
/*if (this.getLastStep() != null) {
  public boolean isMoveLegal() {    // third pass (sigh) : avoid stacking violations    this.isMovementLegal = false;    if (this.getLastStep() != null) {      if (this.getLastStep().getType() == STEP_DFA || this.getLastStep().getType() == STEP_CHARGE)        return true;    }    if (this.overallMoveType != Entity.MOVE_ILLEGAL) {      boolean found = false;      for (Enumeration i = game.getEntities(); i.hasMoreElements();) {        final Entity en = (Entity)i.nextElement();        CEntity cen = TestBot.enemies.get(en);        if (this.curPos.equals(cen.old.curPos) && (en.getId() != this.entity.getId())) {          found = true;        }      }      if (!found) {        this.isMovementLegal = true;      }    }    return this.isMovementLegal;  }