Nice puzzle. My B did not precisely follow the designed path (B climbed the long stairway) and it took B a long time to get out of the pit (after having pushed the fourth ball).