public boolean hasSpringBetweenMasses(Mass mass1, Mass mass2) {
        List<Spring> massSprings = getSprings(mass1);

        for (Spring spring : massSprings) {
            if (spring.isConnected(mass2)) {
                return true;
            }
        }

        return false;
    }