playSong moved out from main