public TileMap() { for (int y = 0; y < MapHeight; y++) { MapRow thisRow = new MapRow(); for (int x = 0; x < MapWidth; x++) { thisRow.Columns.Add(new MapCell(0)); } Rows.Add(thisRow); } }