moved play_sound's path functionality to its own function,
play_sound_path.