Making things happen sequentially within an array

replace this in the for loop for (int i = 0; i < tegnArray.length; i++) { by a new variable upperBorder

increase upperBorder every time draw() runs (or every 2nd time draw runs)