// ctor public Board(int width, int height) { Width = width; Height = height; State = GameState.GameStart; cells = new Cell[width, height]; for (var i = 0; i < width; i++) for (var j = 0; j < height; j++) { cells[i, j] = new Cell() { X = i, Y = j }; } }