private void check(WinLine line) {
        int length;
        if(getField(line.getBeginX(), line.getBeginY()) != EField.Empty) {
            if (line.getBeginX() - line.getEndX() == 0)
                length = line.getEndY() - line.getBeginY();
            else
                length = line.getEndX() - line.getBeginX();
            if(length < 0) length *= -1;
            length++;
            if (length >= getWinLength())
                winLines.add(line);
        }
    }