Experiments with simulating a Turing machine from scratch