Sea slug, I think. But I am no expert. But if it moves around like a snail, it is likely a sea slug. Your talking about the violet thing below the anemone right?
Hard to tell from the pick but it could be a Chiton. Does it look anything like this? If it is a snail or type of gastropod, tenticles/feelers or some sort of sensory organ should be visible.
I think it is a Chromodorididae Sea slug. I think I see a trim of a slightly different color than the body, and it has the ridges around the outside of it. Can we get another pic? Maybe different lighting on it?
If no shell is present under the flesh you may be dealing with a flat worm which do resemble sea slugs. Any tissue damage to that coral it is hanging on?
I was going to mention that too. If it is bothering your torch or anything else, I would do a treatment of Flatworm exit. Follow directions!!! Very important.
When you see it again and you will most likely see it near the Euphyllia move fast and remove the entire piece and shake the worm off in FW, or salt. Your chances are better at night. They move really fast but once you get them out of the water game over. Try not to dip the polyp head of the coral in FW if possible.