The answer is A. Danced happily. The definition of gambled is to run or jump about playfully. The answer B is a possibility; however, the second sentence, which refers to the dog dancing in the yard, expands upon the first sentence, and points to what gamboled means in this context.