Rethinking neutron star mergers: Study explores the effects of magnetic fields on oscillating frequencies