What is the meaning of Upper_hand?

Advantage or control.

The place of honour accorded to a social superior when walking together; the right of way in walking

Source: wiktionary.org