extracted sound playing logic into seperate class