: 0, y: 0 };
        let cohesion = { x: 0, y: 0 };
        let dogAvoidance = { x: 0, y: 0 };
        let wolfAvoidance = { x: 0, y: 0 };
        let separationCount = 0;
        let alignmentCount = 0;
        let cohesionCount = 0;
        let dogAvoidanceCount = 0;
        let wolfAvoidanceCount = 0;

        for (let i = 0; i < sheep.length; i++) {
          if (i === sheepIndex) continue;

          let otherSheep = sheep[i];
          let d = getDistance(currentSheep.x, currentSheep.y, otherSheep.x, 