7. If…

Check this program:

Question: While the condition exists "touching color", why does the cat cross the line without turning back?