Mars to lose its largest moon, but gain a ring