Why is '6' taken into consideration when '7' is there at its right


#1

Why is ‘6’ taken into consideration when ‘7’ is there at its right


#2

The path from ‘6’ to the Red Lake goes like this : 6 -> 5 -> Red Lake and to the Blue Lake there is a direct path : 6 -> Blue Lake .
We’ll consider a cell if there exists any path to both the lakes. Hence ‘6’ is considered.