Games for functions in descriptive set theory