I would consider adding some sort of wrasse to help with your flatworm problem. Possibly 2 if its in the 345g tank. It might take awhile to get rid of all of them but at least iwth will be slow and lots of toxins won't be released into your tank in a short period of time. I believe sixlines and sorts will eat the flatworms but you might want to double check that.