changed maps_dict as maps_list
added the function of checking which section it is