proper handling of tiles in level loading and saving