Added a check when moving tiles to destination folder and improved deletion.