Epidemic code ideas

I’ve been working on the epidemic and infrared activities and I’m getting stuck. It seems that once a robot receives a message it can’t receive another message. So once a robot gets sick it can’t get cured or vice versa. Below is my simplest attempt but the same thing keeps happening.