The answer would be “but” since it contrasts his motivation with competing with others for a high score.
Hopefully this helped.
If the underlined phrase is <em>having been warned by her mother, </em>then this is a nonessential perfect participial phrase.
Nonessential phrases are separated from the rest of the sentence by commas, and since this is a perfect participle, this is the only correct option.