TODO - manage tile and entity referencing when storing the stage