private boolean hasAttack(int row, int col){
        for(int i = row; i >= 0; i--){
            if(chessBoard[i][col] == 'Q') return true;
        }

        for(int i = row, j = col; i >= 0 && j >=0; i--, j--){
            if(chessBoard[i][j] == 'Q') return true;
        }

        for(int i = row, j = col; i >= 0 && j < len; i--, j++){
            if(chessBoard[i][j] == 'Q') return true;
        }
        return false;
    }