created a play_frames function to view the movie