 pen.style.top = levelConfig.penY + "px";

        // Position the dog
        dogX = gameContainer.offsetWidth / 2;
        dogY = gameContainer.offsetHeight - 50;
        dog.style.left = dogX + "px";
        dog.style.top = dogY + "px";
        updateScore();
      }
      function createLevel(numSheep, obstacles, penX, penY, wolves) {
        return { numSheep, obstacles, penX, penY, wolves };
      }
      const levels = [
        createLevel(10, [], 680, 480, []), // Level 1: Few sheep, no obstacles
 