updated code inside initializeMap()

Got rid of unnecessary code and made my code return a pano even if it
doesn't find one at first.