bug in checking color in searchForward