Well .wdl is the level format so I don't think that is the issue.
Have you used the code before and know its working? I haven't coded too much but perhaps there is a pointer error so one of your key commands are going to the guard.
I'm not really sure just putting ideas out there haha.