Fence fixing implemented

Breaking still need some work...