Forum:Ally of Justice and NSGM

I was battling my friend and he had Ally of Justice Catastor and I had Neo-Spacian Grand Mole which card's effect would work? Would NSGM and AOJC return to hand, or would NSGM be destroyed by AOJC's effect? Jaffacakes42