The lines:
        if(. && build_type)
Build()
need to be after the line:
        .=..(loc,dir)

How do you expect the . to represent movement success before the movement even occurs?
Page: 1 2