public DepthSearch(int[,] matrix, List<string> possibleMoves, int amountOfObjects)
        {
            this.matrix = matrix;
            this.amountOfObjects = amountOfObjects;

            chessBoard = new ChessBoard(matrix, possibleMoves);
        }
        public DepthSearchUsingArray(int[] array, List<string> possibleMoves, int amountOfObjects)
        {
            this.array = array;
            this.amountOfObjects = amountOfObjects;

            chessBoard = new ChessBoard(array, possibleMoves);
        }