MSU edges South Carolina in emotional game