A Hole Lotta Trouble

Team Rocket digs another hole, this time in Granite Cave, to capture "The Twerps" but it only succeeds in separating everyone (Including Team Rocket)! How will they get out of the cave?