Handle deletion of objects properly

Delete the object correctly and refresh the tiles.