First thing is your mollie needs salt in the water. They do better.
With mine I got the biggest shrimp I could find, but it still got eaten. How big is your mollie? Mollies get kind of big. It won't have much room to swim in a 10g. when it gets grown. When mine are in the sick tank(10g.) they run into the sides trying to swim.