public void correctPosition(Positioned other)
    {
        if (collisionType(other)[0] == ApproachFrom.LEFT)
            setPos(other.leftBorder() - getWidth(), Y());
        if (collisionType(other)[0] == ApproachFrom.RIGHT)
            setPos(other.rightBorder(), Y());
        
        if (collisionType(other)[1] == ApproachFrom.ABOVE)
            setPos(X(), other.topBorder() - getHeight());
        if (collisionType(other)[1] == ApproachFrom.BELOW)
            setPos(X(), other.bottomBorder());
    }