Initial code for map generation.