Turing machine simulator nearly works