Improvements to the sound handling

Still not great though
Removed old palette code