Implemented missing function: donateOrSellHat

Self esteem increases when donating hats, but money increases when selling hats. Trying to turn this into a full hat simulator.