Issue #2 - Added isPlaying() function