The AI is stuck in a loop because the conditions are constantly true.
As long as "go=0" the AI is constantly getting the command to find a path, follow path, find a path, follow path, find a path, follow path. Same goes for the other values of "go".
You'll need to make the conditions apply once, like for example include "Trigger once while true" or set "go" to -1 or something at the end of the action.