This is very cool, but can someone explain to me why this isn't a perpetual motion machine? Obviously you need to expend energy to do work (1st law of thermodynamics), so where's the energy coming from?
If the answer is 'from the magnets, dumbass', then surely they can't be permanent magnets?