Arrays start from index 0, and count from there. We humans count from 1.
When you write
EngDat[1], you are making an array of one element.
EngDat[1] = [0]. I you want to access the first value in the array, you have to type [0] as the index, as the COMPUTER counts from 0, and HUMANS count from 1. It's a little tricky to get used to in the start
Example:
Array = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
Index = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
By making an array like this
offsetArray[6], you are adding 6 elements. The first element would have the 0th index, and the last element would have the 5th index. When you are trying to get the 7th element of an array that only has 6 elements, you the the "Out of Bound"-error.
You're Array = [0, 0, 0, 0, 0, 0]
Index = [0, 1, 2, 3, 4, 5, --> 6 <--]
//You are trying to get the 7th element, which you see don't exist in the array
Hope this helped you out