Fixed a massive bug regarding the gold variable, hopefully it works now.