    {
        requestAnimationFrame(animate);

        for(var i=0;i<entities.length;i++)
        {
            entities[i].maxSpeed=params.maxSpeed;
            entities[i].maxForce=params.maxForce;
            entities[i].wanderDistance=params.wanderDistance;
            entities[i].wanderRadius=params.wanderRadius;
            entities[i].wanderRange=params.wanderRange;
            entities[i].wander()
            if(params.lookAtDirection)
                entities[i].lookWhereGoing(true);
            el