public void reactTo(Critter other)
  {
    if(other == null)
    {
      return;
    }
    double distance = Double.MAX_VALUE;
    Location tempLoc = new Location(getLocation());
    Location newLoc = tempLoc;
    //for loops to determine behavior
    for(int x = -1; x < 2; x++)
    {

      for(int y = -1; y < 2; y++)
      {
        tempLoc.translate(x,y);
        tempDistance = other.getLocation().distanceTo(tempLoc);

        if(tempDistance < distance)
        {
          distance = tempDistance;
          newLoc = new Location(tempLoc);

        }
        tempLoc.translate(-x,-y);
      }

    }
    //move locations
    this.setLocation(newLoc.getX(), newLoc.getY());
    oval.moveTo(newLoc.getX()- halfSize, newLoc.getY()- halfSize);

  }//end reactTo