单项选择题

He ______ the upper hand in the competition but, at that time, he gave rein to his emotions and ruined the game.

A.had to take
B.might have taken
C.might take
D.must have taken