private bool Path(IBoard board, IPlayer player, bool check)
        {
            int availableMoves = MovedFigures.GetAvailableMoves(board, player);

            if (check == false && availableMoves == 0)
            {
                return(true);
            }

            return(false);
        }
        private bool CheckCheckmate(IBoard board, IPlayer player)
        {
            int availableMoves = MovedFigures.GetAvailableMoves(board, player);

            if (availableMoves == 0)
            {
                return(true);
            }

            return(false);
        }