play both ends against the middle

/P L EY1 B OW0 TH EH0 N D Z AH0 G EH0 N S T DH AH0 M IH0 D AH0 L/
verb
  1. 1

    To manipulate opponents or competitors in a manner which benefits the manipulator.

Source: https://en.wiktionary.org/wiki/play%20both%20ends%20against%20the%20middle, https://en.wiktionary.org/wiki/play%20both%20sides%20against%20the%20middle