private int quadValue(int x, int y, int side) {
        int counter = 0;
        if ( checker_of(side,x-1,y-1) )
            counter++;
        if ( checker_of(side,x,y-1) )
            counter++;
        if ( checker_of(side,x-1,y) )
            counter++;
        if ( checker_of(side,x,y) )
            counter++;
        if (counter == 2 && ((checker_of(side,x,y) && checker_of(side,x-1,y-1))
                             || (checker_of(side,x-1,y) && checker_of(side,x,y-1))))
            return 5;
        return counter;
    }