Added logic for tile removal