he waited for some time to see what kind of search operation might be coming for him , and as he waited he worked the knots , pulling with his teeth and scratching them against broken bricks along the edge of an alley until at last he was free .