restructured logic to updateGold function

check for gold > 99 now operational