fixed map generation algorithm