text: // Tiles store module
  
  const DIM_ROWS = 20;
  const DIM_COLS = 20;
  const TILE_SIZE = 50;
  
  const initialMatrix = () => {
    const colors = ['#FFF8DC','#FFEBCD','#DEB887','#BC8F8F','#FFF8DC','#B8860B','#D2691E','#A0522D','#A52A2A','#800000',]
    let m = [];
  
    for(let i=0 ; i<DIM_ROWS ; i++){
      for(let j=0 ; j<DIM_COLS ; j++){
        const rndColor = colors[Math.floor(Math.random() * 10)];
        m[(i * DIM_COLS)+ j] = {i, j, color:rndColor};
      }
    }
    return m;
  }
  
  export default {
    state: {
      rows: DIM_ROWS,
      cols: DIM_COLS,
      tileSize: TILE_SIZE,
      tiles: initialMatrix()
    }
  }
  
  