Test on SubMachines and 'next state' with conditions on submachine states

click on button will change their states (ButtonCountdown -> ButtonWait -> ButtonStop -> ButtonCountdown...)

when you click on Button 1, 2 and 3, a special machine store their status (countdown/wait/stop) in respective submachines

if button 1 and 2 are on 'wait' and button 3 is not 'Off', button 4 will change

provided by Intersel