public String validate(){
        for (AbstractUnit unit : units) {
            if(unit instanceof IInstructionUnit){
                String error = ((IInstructionUnit)unit).validateIntruction();
                if (error != null){
                    unit.color = Color.YELLOW;
                    return unit.unitNumber+"  "+ error;
                }
            }
        }
        return null;
    }