added function to render all the blocks in the map