play both sides against the middle
Verb
Meaning
play both sides against the middle (third-person singular simple present plays both sides against the middle, present participle playing both sides against the middle, simple past and past participle played both sides against the middle)
(idiomatic) To manipulate opponents or competitors in a manner which benefits the manipulator.