Sample code for map generation for a 3D array of cells.