made playMusic and pauseMusic more generic