Help with catcher game

I really cant figure it out, isnt the loop going to look like the one that is already in de code?
for (a = 0; a < 17; a++) {
And how do i make it so that i count endlessly until je lose and miss a ball. Because now it counts to 17