Refactor playMusic