Added Map class. Refactored code to use Map class instead of 2D arrays of Locations.