You need a
Wait 1 turn(s)
command somewhere in the Direction Loop part. Without that, it gets stuck in an infinite loop where the character is testing whether Beethro is in rectangle A or B over and over again, all during the same turn. After a few cycles, DROD figures out it's never going to finish and gives up on trying to run the script during this visit to the room. The Wait command fixes things so that he checks each rectangle once, waits for the next turn, checks again, and so on. I added the above command just before 'Go to "
Direction Loop"
', and the guard starts moving okay. He then gets stuck on roaches, but that's easily fixed by setting a more specific path or moving a few roaches.