Sketch (and I stress sketch) is by me but I believe the theory is sound. The northern magnet will move slightly to start motion in that direction and speed. It could be regulated by the proximity and power supplied to the southern magnet. Another electro magnet can be secured at the base and top opposite to change altitude when on planets with strong electromagnetic fields(like Earth). I’m sure this needs some tweaking.