Refactor code to put all maze bounds checking in interpret-value function