Added state machine

teplosvetlo tma a noc