Action of electric current on magnet