while (m.getC3Master() != null && !m.getC3Master().equals(m) && m.getC3Master().hasC3() && !(Compute.isAffectedByECM(m, m.getPosition(), m.getC3Master().getPosition()))) {
while ((m.getC3Master() != null) && !m.getC3Master().equals(m) && m.getC3Master().hasC3() && !(Compute.isAffectedByECM(m, m.getPosition(), m.getC3Master().getPosition()))) {
    public Entity getC3Top() {        Entity m = this;        while (m.getC3Master() != null && !m.getC3Master().equals(m) && m.getC3Master().hasC3() &&              !(Compute.isAffectedByECM(m, m.getPosition(), m.getC3Master().getPosition()))) {            m = m.getC3Master();        }        return m;    }