hasGold for class Agent