When an assist is observed, where does the energy come from to boost the BB higher up the inclined glass surface? The Jupiter magnet connects its revolving motion to the BB, as the BB rolls by. The BB picks up motion from Jupiter. If the BB rolls by a little faster than the Jupiter magnet's "escape velocity," then the boost is successful. If less, the BB "crashes" into Jupiter and sticks to the magnet. Of course the motor supplies the revolving energy for the Jupiter magnet, while the real Jupiter draws upon its huge momentum as it coasts along in orbit.
Finer points: At the top of this page is the question, "...what's the difference?" Well, of course with magnetism, the "spacecraft" BB doesn't have its own pull on the Jupiter magnet. The magnet does all the pulling. As it does, the Jupiter magnet feels a backward tug as it supplies the energy to accelerate the BB. Another fine point is that if you were to place an accelerometer on the BB, it would register acceleration as the boost takes place. This would not be true on a spacecraft. A spacecraft feels nothing but continuous freefall as it picks up a large increment of speed during a gravity assist. This is because of the balance in gravitational tug as the spacecraft pulls on Jupiter and vice-versa.