Changed a single line so that Center of mass calculation doesn't exclude the tail.  It was throwing off COM calculation when the whole animal is a single blob, which is often recognized as the tail.