Refactored playSoundEffects function