hw10: renamed function to play()