I can figure out why the enemy’s go diagonal https://flowlab.io/game/play/1371445
I showed a fix in your other discussion http://forum.flowlab.io/discussion/8329/stupid-pig#latest