add the function to play