03-18-2016, 02:11 AM
I don't think you should save every fence, but only those in the corners
+: fence
x: fence that will be saved
Code:
...x++x
...+--+
x++x--+
G-----+
x+++++x
x: fence that will be saved