adding some logic to buy more hats with