The researchers then used a pacemaker to measure the directions of the heart?s movements