ySelector('canvas');
            const ctx = canvas.getContext('2d');
            let width, height, halfWidth, halfHeight, cols, rows;

            function resize() {
                width = canvas.width = window.innerWidth;
                height = canvas.height = window.innerHeight;
                halfWidth = width / 2;
                halfHeight = height / 2;
                cols = Math.floor(width / 8);
                rows = Math.floor(height / 8);
            }
            window.addEventListener('