It makes sure that you are touching a dot (Sprite) in the correct order (indcount). If you do, it changes the animation frame of the dot to a transparent frame to give the impression the dot was removed.
stepid is there to allow you making the different "lines" (1, 2, 3 in your example) to make sure you are touching the dots over the pictures in the order you designed them to be solved.