play both ends against the middle - definition and synonyms

phrase informal
  1. to make two people or groups oppose each other so that you can gain something
See also main entry: end