This thought drove him to despair , and he had almost made up his mind to return to the place of her captivity , when one day , as he was strolling along an alley in the woods , he saw a huge oak open its trunk , and out of it step two Princes in earnest conversation .