Stupid Pig

My enemy object is supposed to follow the path by turning when it touches a certain block, but instead it turns half way and goes diagonal.
Here’s my game- https://flowlab.io/game/play/1371445

Try this:
2020.03.11-17.15