added overloaded method updateMoney(int pot) to update the winner's total money