Automaton handler completed. Still struggling to synchronize javafx and automaton threads