The infinitive in this sentenced is a GERUND, which means its function is to represent the act of, it is technically a noun, as it is the act of playing.
1.6m questions
2.0m answers