Toying with finite automata in Scala