Basic one tape Turing Machine in Java because why not?