;
          dogAvoidance.x += diff.x;
          dogAvoidance.y += diff.y;
          dogAvoidanceCount++;
        }
        //Wolf avoidance
        wolves.forEach((wolf) => {
          let wolfDistance = getDistance(currentSheep.x, currentSheep.y, wolf.x, wolf.y);
          if (wolfDistance < wolfAvoidanceRadius) {
            let diff = { x: currentSheep.x - wolf.x, y: currentSheep.y - wolf.y };
            diff.x /= wolfDistance;
            diff.y /= wolfDistance;
            wolfAvoidance.x += diff.x;
 