Identify the verbal and its function in the sentence:
We were hoping to begin a game of chess.
A. It is a participle functioning as a noun.
B. It is a participle functioning as an adjective.
C. It is an infinitive functioning as an adverb.
D. It is an infinitive functioning as a noun.