private Vector getDirection(int number){
        Vector res = new Vector(0,0);
        if (!hasEnemyInAreaToMove(number)){
            return res;
        }
        double radius;
        int count = 1;
        for (int i = 0; i < beings.size(); i++){
            radius = beings.get(number).isZombie() ? RADIUS_DETECT_HUMAN : RADIUS_DETECT_ZOMBIE;
            if ((beings.get(i).isZombie() ^ beings.get(number).isZombie()) && getDistance(i, number) < radius){
                double dx = beings.get(i).getX()-beings.get(number).getX();
                double dy = beings.get(i).getY()-beings.get(number).getY();
                double r = sqrt(dx*dx + dy*dy);
                if (r > Zombie.getSpeed()) {
                    dx /= (r);
                    dy /= (r);
                }
                count++;
                if (beings.get(number).isZombie()){
                    res.plus(dx, dy);
                }else {
                   res.plus(-1*dx, -1*dy);
                }
            }
        }
        res.del(count*2);
        return res;
    }