Worker with controller

Control class is defined how to control time with synchronized object.
Hanoi class is a base class with addional, overridable method for showing stacks.
Hanoi1 is a derived class showing simply stacks with numbers.
Hanoi2 is one showing real disks.
HanoiX has three threads: worker thread (Hanoi1 or Hanoi2), controller thread by keyboard,
main thread which monitors worker and controller threads.