// true on tile being 5x5 grid away from wall
bool FarFromWall(Coord tile)
{
if (edgeTiles.Contains(tile))
{
return(false);
}
for (int x = tile.tileX - 2; x <= tile.tileX + 2; x++)
{
for (int y = tile.tileY - 2; y <= tile.tileY + 2; y++)
{
if (tile.Equals(new Coord(x, y)))
{
continue;
}
if (edgeTiles.Contains(new Coord(x, y)))
{
return(false);
}
}
}
return(true);
}