int isRisky() {
        for (int i = 0; i < 8; i++) {
            int sum = 0;
            for (int j : ways[i]) {

                sum += j;
            }
            System.out.println(i + " " + sum);
            if (sum == 2) {
                return i;
            }
        }
        return -1;

    }