gain the upper hand
To come to be in a position of advantage, power, and/or control (over someone, something, or some situation). We've been doing everything we can for your father, but I'm afraid the cancer is gaining the upper hand. The home team gained the upper hand when their opponents' star quarterback went out with an injury.