Moved tile loader out into its own module.