added test and code to properly destroy tiles and such