map generation added to main action function
map generation working