Created method to read a map file