ffsetHeight / 2;
          dog.style.left = dogX + "px";
          dog.style.top = dogY + "px";
        },
        { passive: false }
      ); // Prevent scrolling on touch

      // Bark (make sheep move faster temporarily)
      gameContainer.addEventListener("click", () => {
        if (!gameRunning) return;
        // Increase sheep speed for a short duration
        maxSpeed = 4;
        setTimeout(() => {
          maxSpeed = 2;
        }, 500); // Reset speed after 0.5 seconds

        //Simple dog b