value iteration almost works