simple console based turing machine