moved all map stuff to mapgen