make play and stopPlaying functions public