Removed some redundancy in displayMap()