Redirecting you to http://en.wikipedia.org/wiki/Finite_state_machine