Fix to magnets

magnets now check if other magnets influencing them have been deleted