Fixed some bugs with money earned and lost