A magnetic compass is placed near an insulated copper wire. When the wire is connected to a battery and a current is created, the compass needle moves and changes its position. Which is the best explanation for the production of a force that causes the needle to move?