how does gold processing work