Rewrote map generation.