.getElementById("start-screen-button");

      let sheep = [];
      let obstacles = [];
      let wolves = [];
      let dogX = 0;
      let dogY = 0;
      let score = 0;
      let timeLeft = 60; // 60 seconds
      let level = 1;
      let gameInterval;
      let gameRunning = false;

      // Flocking parameters
      const separationRadius = 25;
      const alignmentRadius = 50;
      const cohesionRadius = 75;
      const separationWeight = 1.5;
      const alignmentWeight = 1.0;
      const cohesionW