ment.querySelector("#gridWidth").value;
      const height = document.querySelector("#gridHeight").value;
      const straightWeight = document.querySelector("#straightWeight").value;
      const diagonalWeight = document.querySelector("#diagonalWeight").value;
      const includeDiagonals = document.querySelector("#includeDiagonals").checked;
      const brief = document.querySelector("#brief").checked;
      const numberOfPairs = parseInt(document.querySelector("#numberOfPairs").value);
      const random