Implemented discounted rewards