fixed function to play song when current song ends