Created Map Object

* Created a structure to hold map data
* Changed gen_map to use new object