new array, index counter, isEndy() separate method