Magnetic force just like any other force, is a vector quantity. That means a magnetic field which is represented by magnetic field lines has both magnitude and direction.
In the experiment that you have just performed, the direction of deflection of the compass needle depends on the position of the needle and the direction of current. Use the magnifying lens to magnify and observe the images below;