Saves tiles and assigns types to world tiles.