and all of a sudden , she understood that it had happened , all of it ; that he 'd figured out a place to buy whoopie pies , had them sent to the lobster pot ; he must have talked it all out with joe ahead of time , orchestrated the whole thing so that she 'd bet the right way .