Remove gap in episodic memory

Remove error with gap in episodic memory. Agent now finishes
with something that is functionally correct on a 3-state machine
almost every time.