Actually , when the person start the program (press the button once) , the program start and the trial Number start to increment.
The idea is to create an infinite loop with the beat (synch test) when the user start and then , if the button is pressed again , the trial number start to increment