private static boolean isInsideInSameVerticalSpace(Positioned a, Positioned b)
    {
        return  a.topBorder() == b.topBorder() &&
                a.bottomBorder() == b.bottomBorder() &&
                    (pointInside(a, b.leftBorder(), (b.topBorder() + b.bottomBorder()) / 2, true) ||
                    pointInside(a, b.rightBorder(), (b.topBorder() + b.bottomBorder()) / 2, true));
    }