Turing Machine Simulator in Java