eight = 1.0;
      const dogAvoidanceRadius = 100;
      const dogAvoidanceWeight = 2.0;
      const wolfAvoidanceRadius = 150;
      const wolfAvoidanceWeight = 3.0;
      const maxSpeed = 2;
      const maxForce = 0.1;

      // Helper function to get distance
      function getDistance(x1, y1, x2, y2) {
        return Math.sqrt((x2 - x1) ** 2 + (y2 - y1) ** 2);
      }
      function showScreen(text, showRestart, showNextLevel, showStartScreen) {
        screenText.textContent = text;
        restartButt