code: function fillGridAt(x, y, drawMask, dimension, item) {
        if (x >= ngx || y >= ngy || x < 0 || y < 0) {
          return;
        }
  
        grid[x][y] = false;
  
        if (drawMask) {
          var ctx = elements[0].getContext('2d');
          ctx.fillRect(x * g, y * g, maskRectWidth, maskRectWidth);
        }
  
        if (interactive) {
          infoGrid[x][y] = { item: item, dimension: dimension };
        }
      }
docs: /* Help function to updateGrid