upgraded turing machine simulator