in chooseAction function default value of mx_nxt_reward is 0. but in some cases in greedy action the ture max reward is negative so by default value of 0, no action will be choosen. there for default value of mx_nxt_reward should be -inf to prevent error in these cases.