twitched automaton, added tests. probably going to rewrite automaton using adjacency list