added functions to create, print and clear map when it's valid corrected map del in print_map
added functions to create, print and clear map when it's valid