Backwards problems

So I created a “Moldy Cheese” Item, which causes enemies to turn around. It works fine, until I added vertical path. In 3-1 and 3-2 If the enemies are going down or up, the Cheese effect causes them to walk off the path, and they will break the level. Can someone help?
here’s my game- https://flowlab.io/game/play/1116489

You never made it where they move backwards vertically

I’m not sure how either, I’'ve tried various methods, and they don’t seem to work

Well the wiring is starting to get long, I would try some messages that sends to itself.

Message to itself:
2020.06.02-21.35

Vertical switch:
2020.06.02-21.46