Attempted to access index 50 from array with length 50!

Er, nope. A 50 element array goes from 0 to 49 :wink: