private void tryLine(int x, int y, ELine line) {
        int count = 1;
        EField type = getField(x, y);
        x += line.getDx();
        y += line.getDy();
        while(x < getGameSize() && y < getGameSize() && x >=0 && y >=0) {
            if(getField(x, y) != type) {
                check(new WinLine(x - count * line.getDx(), y - count * line.getDy(), x - line.getDx(), y - line.getDy()));
                count = 1;
                type = getField(x, y);
            } else
                count++;
            x += line.getDx();
            y += line.getDy();
        }
        check(new WinLine(x - count * line.getDx(), y - count * line.getDy(), x - line.getDx(), y - line.getDy()));
    }