TODO: Finish the loading function to add tiles.