adjustBoard: function() {
const boardContainer = document.getElementById("boardContainer");
if (!boardContainer) return; //no board on page
adjustBoard: function() {
const boardContainer = document.getElementById("boardContainer");
if (!boardContainer) return; //no board on page
const k = document.getElementById("boardSize").value;
const movesWidth = window.innerWidth >= 768 ? 280 : 0;
const minBoardWidth = 240; //TODO: these 240 and 280 are arbitrary...
const k = document.getElementById("boardSize").value;
const movesWidth = window.innerWidth >= 768 ? 280 : 0;
const minBoardWidth = 240; //TODO: these 240 and 280 are arbitrary...