public int[] checkLines() {
        ArrayList<Integer> temp = new ArrayList<>();
        int i, j, k;
        for (i = tailleX - 1; i >= 0; i--) {
            k = 0;
            for (j = 0; j < tailleY; j++) {
                if (plateau[i][j] != 0) {
                    k++;
                }
            }
            if (k == tailleY) {
                temp.add(i);
            }
            if (k == 0) {
                break;
            }
        }
        if (temp.isEmpty()) {
            return null;
        }
        int[] lines = new int[temp.size()];
        for (i = 0; i < lines.length; i++) {
            lines[i] = temp.get(i);
        }
        return lines;

    }