public List<Integer> tarkastaTaydetRivit() {
        List<Integer> taydet = new ArrayList<Integer>();
        for (int i = pelipalikat.length - 1; i >= 0; i--) {
            if (pelipalikat[i][0] != null) {
                boolean taysi = true;
                for (int j = 0; j < pelipalikat[i].length; j++) {
                    if (pelipalikat[i][j] == null) {
                        taysi = false;
                        break;
                    }
                }
                if (taysi) {
                    taydet.add(i);
                }
            }
        }
        if (taydet.isEmpty()) {
            return null;
        }
        return taydet;
    }