sound implementation

implementing sound, debugging the death problem