Repeat this process, but with a slight variation: attach the wire to the positive pole of the battery first, then, holding the looped end of the wire over the compass, complete the circuit touching the other end of the wire to the negative pole of the battery.
(the circuit; touching; the other end of the wire; to the negative pole of the battery)
the circuit
touching
the other end of the wire to the negative pole of the battery