break if the sequence chosen is the last one.