added code for loading map file, determining dimensions of map and allocating memory for 2d array