RemoveAloneWalls function