Reorganised code again. Fixed Fence placer.