private void InstantiateBoard() { int currentRow = 0; int currentColumn = 0; int totalCells = boardData.GetTotalCells(); for (int index = 0; index < totalCells; ++index) { InstantiateCell(currentColumn, currentRow); ++currentColumn; if (currentColumn == boardColumns) { currentColumn = 0; ++currentRow; } } }