public void move() {
    // if (target == null) {
    int dist = 1000;
    for (Organism g : Ecosystem.getYellow()) {
      if (getDist(g) < dist) {
        target = g;
        dist = getDist(g);
      }
    }
    for (Organism g : Ecosystem.getRed()) {
      if (getDist(g) < dist) {
        target = g;
        dist = getDist(g);
      }
    }
    if (!(target == null)) {
      if (getDist(target) < 20) {
        attack();
      } else {
        int x = posX - target.posX;
        int y = posY - target.posY;

        double d = Math.sqrt(x * x + y * y);

        movX = -(x / d);
        movY = -(y / d);
      }

      if (target.life.get() <= 0) {
        target = null;

      }
    }
  }