Alan tries to hire his ex-wife's lawyer to help him win custody over the dog he and Kandi shared, but has to resort to desperate measures when Judith instead steers Kandi to the mean attorney.