public Command planNextMove(Info info)
  {

    this.distances.clear();
    this.x = (this.y = this.rotation = -1);

    this.data = info;
    this.x = info.getX();
    this.y = info.getY();
    this.rotation = info.getDirection();
   


    int targetInfo = getTarget();
    int target = targetInfo;
    int focus = target;
            if(data.getX() > (GameData.GAME_WIDTH-60) || data.getX() < 60){
            int dir = data.getDirection();
            return new Command(CommandType.MOVE_FORWARD, CommandType.TURN_RIGHT, dir-180, CommandType.SHOOT);
        }
        
        if(info.getY() > (GameData.GAME_HEIGTH-60) || data.getY() < 60){
            int dir = data.getDirection();
            return new Command(CommandType.MOVE_FORWARD, CommandType.TURN_RIGHT, dir-180, CommandType.SHOOT);
        }
    
    if (target == -1) {
      return new Command(CommandType.NONE, CommandType.NONE, 0, CommandType.NONE);
    }
    if (this.rotation != target) {
      if (this.rotation > target)
        focus = this.rotation - target;
      else if (this.rotation < target)
        focus = this.rotation - target;
    }else {
        focus  = 1;
    }

      return new Command(CommandType.MOVE_FORWARD, CommandType.TURN_LEFT, focus, CommandType.SHOOT); 
  }