some rts js code references for squad movement