played around with promises and stuff in order to parallelize the map loading process (and to make it a lot cleaner and easier to maintain)