I drop a few stars for the stability factor. The ball on the rail falls and spins and then P crosses the spinning ball and becomes unstable and will not walk. If you would have used a wedge under the ball, all would have been good but you didn't. As a creator of levels, always make sure that if R must walk over a ball, the ball can't be moving and a simple wedge will fix that. EDIT - Since you wanted me to use tricks I did it also without the unstable ball or P at all and B was alive at the end.... Be care with tricks....
Found a shortcut that doesn't need tricks, but the intended gameplay with autopilot was fun though easy. Thanks for sharing @Star Footprint