private void setCommand(Info info) {
        Angle = 0;
        FindNextTank(info);
        int angle = RotateToKill(info);
        int distance = Distance(info);

        if (angle > info.getDirection()) {
            Angle = angle - info.getDirection();
            if (distance > 200) {
                type = 1;
            } else {
                type = 0;
            }
            left = false;
        } else if (angle == info.getDirection()) {
            shoot = true;

        } else {
            Angle = info.getDirection() - angle;
            left = true;
        }
        if (distance > 500) {
            shoot = false;
        } else {
            shoot = true;
        }
        if(finish == 1)
        {
            shoot = false;
            Angle = 90;
            type = 0;
            name = "WINNER";
        }
    }