1. Replace the spinning magnet with an electromagnet
2. Connect the wires to turn on the electromagnet
3. The electromagnet lines up with the side magnet
4. Reverse the polarity of the electromagnet
5. The same poles repel and opposite poles attract
6. Keep switching the polarity
7. The electromagnet will keep spinning