updated code to play the movie