You might need to adjust the settings on your potentiometer for the line follower to work.
Please see the following:
If the LEDs flash immediately it might be detecting the ambient lighting in the space you are using. We use IR sensors to cycle through programs, as a result you are getting the IR sensors detecting ambient light thinking you are cycling through programs on the board.
You can't change the sensitivity of the IR sensors along the topside of the board, only the bottom ones. I suggest moving away from natural sunlight or any strong impacting uv light.