This is realy funny. This thread was supposed to teach other people how something could be achieved but it turns out, that there are a lot of very simple things which I have to learn too. Thank you Robske for pointing me to apoc's thread. The FSM concept is amazing!
I am a little ashamed that I've ignored the "Programming"-section in this board until now.