Started implementation finite state machine and the relevant states. May or may not use a state manager.