private int getTarget()
  {
    InfoDetail cil = null;
    int state;
    
    if (this.data != null) {
      for (InfoDetail o : this.data.getEnemies()) {
        if (o != null) {
            cil = o;
          
        }
      }
      if (cil == null) {
        state = -1;
        return state;
      }

      int dX = Math.abs(this.x - cil.getX());
      int dY = Math.abs(this.y - cil.getY());
      
      double distance = Math.sqrt(dX * dX + dY * dY);

      double angle = Math.toDegrees(Math.atan(dY / dX));
      System.out.println(angle+"\n");
      System.out.print(dX+": X");
      System.out.print(dY+": Y");
     if (cil.getX() >= this.x) {
        if (cil.getY() >= this.y)
        {
          angle =+ angle/2;
        }
        else
        {
          angle = 360 - angle;
        }

      }
      if (cil.getY() >= this.y) {
        angle = 180 - angle;
      }
      else {
        angle = 180 + angle;
      }


      state = ((int)angle);
      return state;
    }

    state = -1;

    return state;
  }