Separate automata logic from display
Add Display class