well yeah a motor works on the same basics the diffrence is the motor needs fule... its hard to explain my idea with words honestly, but ille try. Think of two balls on springs aimed at each other and let go. they would bounce but eventually stop now if you put reppelling magnets on the ball they would still eventually stop and spin around each other. now to solve that problem we replace one of the balls with a magnetic wall, of course the ball still stops suspended from the wall after a few bounces but what if we put the wall on springs so when the ball hit it it gose back just aliitle bit at that point the ball would in theory bounce forever because if it slowed the fact the wall would go forward faster than ball would make the ball go again