Click the flag and watch it paint. I recommend that you use turbo mode (shift click the flag). Hold down mouse button for an arrow pointing to where it is painting and hold space to show variables.
I fixed the color changing so it would not just change the blue