Break up finishFloor and buildPortals. Separate out the parts that are just DOM manipulation from the parts the processthe SVG to build the dataStore. This will facilitate the addition of a dataStore caching mechanism.