\documentclass[a4paper]{article}

\usepackage{tikz}
\usepackage{chessfss}

\tikzset{WhiteSquare/.style = {shape=rectangle, minimum width=28, minimum
    height=28, anchor=south west}}
\tikzset{BlackSquare/.style = {shape=rectangle, fill=lightgray, minimum
    width=28, minimum height=28, anchor=south west}}

\begin{document}

\begin{center}
  \begin{tikzpicture}
    \draw[step=1,black,thin] (0,0) grid (5,5);

    % First file
    \node[BlackSquare] at (0,0) {}; 
    \node[WhiteSquare] at (0,1) {};
    \node[BlackSquare] at (0,2) {\BlackQueenOnWhite};
    \node[WhiteSquare] at (0,3) {};
    \node[BlackSquare] at (0,4) {};
    
    % Second file   
    \node[WhiteSquare] at (1,0) {};
    \node[BlackSquare] at (1,1) {\BlackQueenOnWhite};
    \node[WhiteSquare] at (1,2) {};
    \node[BlackSquare] at (1,3) {};
    \node[WhiteSquare] at (1,4) {};

    % Third file 
    \node[BlackSquare] at (2,0) {};
    \node[WhiteSquare] at (2,1) {};
    \node[BlackSquare] at (2,2) {};
    \node[WhiteSquare] at (2,3) {\BlackQueenOnWhite};
    \node[BlackSquare] at (2,4) {};

    % Fourth file
    \node[WhiteSquare] at (3,0) {};
    \node[BlackSquare] at (3,1) {};
    \node[WhiteSquare] at (3,2) {\BlackQueenOnWhite};
    \node[BlackSquare] at (3,3) {};
    \node[WhiteSquare] at (3,4) {};

    % Fifth file
    \node[BlackSquare] at (4,0) {\BlackQueenOnWhite};
    \node[WhiteSquare] at (4,1) {};
    \node[BlackSquare] at (4,2) {};
    \node[WhiteSquare] at (4,3) {};
    \node[BlackSquare] at (4,4) {};
  \end{tikzpicture}
\end{center}

\end{document}
