do(a, b) {
        if(a.distCor(a.targetX,a.targetY)<5 && !a.taskStarted){
            a.startTask();
        }
        if (a.actionProgress >= this.actionProgressLength) {
            console.log('wander done');
            return true;
        }
        return false;
    }
// a does this action to b. Returns true if task completed false otherwise
a does this action to b. Returns true if task completed false otherwise
a does this action to b . Returns true if task completed false otherwise
do(a, b) {
        if(a.distCor(a.targetX,a.targetY)<5 && !a.taskStarted){
            a.startTask();
        }
        if (a.actionProgress >= this.actionProgressLength) {
            console.log('wander done');
            return true;
        }
        return false;
    }
do ( a , b ) { if ( a . distCor ( a . targetX , a . targetY ) < 5 && ! a . taskStarted ) { a . startTask ( ) ; } if ( a . actionProgress >= this . actionProgressLength ) { console . log ( 'wander done' ) ; return true ; } return false ; }
a does this action to b.
a does this action to b .