public Turing generateTuring() {
String init = this.initialState;
HashSet<String> term = new HashSet<>(this.finalStates);
Turing turing = new Turing(term, init, "*");
turing.initializeTape(this.getInputAlphabet().toString().replace("[", "").replace("]", "").replace(", ", "")
+ this.getInputAlphabet().toString().replace("[", "").replace("]", "").replace(", ", ""));
this.transitions.forEach(trans -> turing.addTransition(
trans.getSource(),
trans.getLabel(),
trans.getDestination(),
trans.getLabel(),
1));
turing.setRunStepsScript(turing.getTape().size() + 1);
return turing;
}