- Just added procedural gold . The best kind of gold, nah real gold is. The code filed a few lucky karts with gold. COUNTING MY GOLD Then I created a gold counting function. It ran through the train array looking for karts, then it tested that karts to see if they had gold. If they did, it added that amount to gold count. I feel rich after counting all my gold!