Bug fix for background music

The code was crashing when no music was playing at the moment
Merge pull request #9 from icanzilb/swift

Bug fix for background music