fixed isPlayerPlaying condition