DFA checker for school. Takes DFA and string as input and tests for acceptance.