void removeSingleConectedMasses() {
        List<Mass> network = grammar.getGraph().getNetworkMasses();

        for (Mass mass : network) {
            List<Spring> springs = grammar.getGraph().getSprings(mass);

            if (springs.size() == 1) {
                grammar.getGraph().getSprings().remove(springs.get(0));
            }
        }
    }