Daniel's first solution to Policy iteration and
working solution to the gambler problem