public BoardData(Unit[,] boardData) { sizeX = boardData.GetLength(0); sizeY = boardData.GetLength(1); _boardData = (Unit[, ])boardData.Clone(); }