Changed play functions to loop functions