Updated BetCash() function so that test cases pass.