Yes. Maybe using `i = -1` isn't the best solution. I could use a boolean variable and set it to false when it shouldn't display the content and to true when it should, which might make it more clear.

`resultsDisplayed` is the sum of all the results till the first result we will show + the results that are being added to the array to display. I did this since I want to display from the currentStart match and end on the last one to display. I can rename the variable, but I think is easier to code if I can add all the matches (both until the one to show and the ones that will be displayed) into one variable.