To play with matches is wrong.
How does the infinitive function in the sentence?
As a subject?
As an adjective?
As an adverb?
As an direct object?