fix boundaries for pasting/deleting tiles