bug fixed neighbor invert

Fixed a bug in neighbor invert and neighbor invert top left.
Previously, the coloring radius was getting blocked by the trees and
the method was stuck in an infinite loop