separated out some functions into a header
beginning seperation of tile file creation and map file creation.