Dynamic sequence player function play_sequence()