Enable path finding only for the herd and solved bug with the patterns