private void RemoveSurroundedNodes() { for (int y = 0; y < mapSize; y++) { for (int x = 0; x < mapSize; x++) { int[,] neighbours = GridMath.GetNeighbours(_mapGrid, new Vector2Int(x, y), 1); if (GridMath.CheckSurroundedFully(neighbours, 1)) { _mapGrid[y, x] = 0; } } } }