shuffled code a bit
added callback function to tilemap to keep track of deleted and added tiles.