DFA tested and Simulator code is done