changed map generation algorithm