dth / 2;
        dogY = e.clientY - rect.top - dog.offsetHeight / 2;
        dog.style.left = dogX + "px";
        dog.style.top = dogY + "px";
      });

      gameContainer.addEventListener(
        "touchmove",
        (e) => {
          if (!gameRunning) return;
          e.preventDefault();
          const rect = gameContainer.getBoundingClientRect();
          const touch = e.touches[0];
          dogX = touch.clientX - rect.left - dog.offsetWidth / 2;
          dogY = touch.clientY - rect.top - dog.o