added verbose to value iteration. Adjusted encoding if statement to continue