on.style.display = showRestart ? "block" : "none";
        nextLevelButton.style.display = showNextLevel ? "block" : "none";
        startScreenButton.style.display = showStartScreen ? "block" : "none";
        screenDiv.classList.add("active");
        gameRunning = false;
      }
      function hideScreen() {
        screenDiv.classList.remove("active");
      }
      // Load game progress
      function loadProgress() {
        const savedLevel = localStorage.getItem("shepherdsDogLevel");
        if (sav