Using songs from youtube in create task -- copyright infringement?

My student is creating an app that plays a song and the player will guess what song it is. They are getting their songs from youtube. Will this be a copyright infringement? Should they redirect their project? Would their program not be considered?

They need to cite all their sources in the code as comments.