Hint 1: Dig an escape tunnel for Twitch.
Hint 2: Remember from the first act who could help you dig and how to get his attraction.
Hint 3: Do you have anything that looks like a bone? And what is the best place to start the tunnel?
Hint 4: Remember from the first act what you did to get the dog out of the hole then, and where exactly you want him to surface this time.
Solution: Put wrench on the dirt and one of the dogs will start digging. Then throw the fortune cookie into the cell to get him digging a tunnel to Twitch.