public void manageCollision(Sprite sprite1, Sprite sprite2, int countFaced) {
        if (oldSprite1 == null || (oldSprite1 != sprite2 || oldSprite2 != sprite1)) {
            ElementField first, second;
            first = Buffer.findElement(sprite1);
            second = Buffer.findElement(sprite2);
            TYPE type;
            if (countFaced > 1) {
                type = TYPE.PAIR;
            } else {
                type = TYPE.DEFAULT;
            }
            ElementField firstcopy = first.copy();
            if (_countReact == 0) {
                first.reactOnCollision(second, type);
            }
            second.reactOnCollision(firstcopy, type);
            Buffer.deleteElement(firstcopy);
            _countReact++;
            if (_countReact == countFaced) {
                _countReact = 0;
            }
        }
        oldSprite1 = sprite1;
        oldSprite2 = sprite2;
    }