fixed a bug in lua file generation. fixed logical mixup between facing and beside fluents