private int checkUpRight(int num, int i, int y) {
        if (i - 1 >= 0 && y + 1 <= 14 && board[i - 1][y + 1] == num) {
            return checkUpRight(num, i - 1, y + 1) + 1;
        } else {
            return 0;
        }
    }