processor

Implemented the state machine inside the processor module