The word happily is what part of speech in this sentence?

The two sisters played happily most of the afternoon.