The error says that the code at line 78 used an index that was past the end of the array. The index value was 1 so the array's length must be less than 2.

The code should test that the index it is...