Fixed rotary magnets bugs

Fixed a bug which cause a rotary magnet to always be influenced by the
player magnet despite it being suposed or not
Fixed a bug which cause rotary magnets to mess up interations between
polarities