Added basic tile saving functionality