bool matches(UnitType other) { final check = children.contains(other); return this == other || check; }