Ignition Control Module problem

maybe a FSM would help