encoded value iteration almost finished. only difference in non-encoding and encoding are states around goal state..