Update sound.coffee

fix a few minor logical errors