void SmoothMap() { for (int x = 0; x < Width; x++) { for (int y = 0; y < Height; y++) { int neighbourWallTiles = GetSurroundingWallCount(x, y); if (neighbourWallTiles > 4) map[x, y] = 1; else if (neighbourWallTiles < 4) map[x, y] = 0; } } }