Completed allPlay function