Receiving error but cannot debug: ArrayIndexOutOfBoundsException

@firetryer – When you post, please help us help you by formatting your code with the </> button or by putting ``` above and below your code. I’ll help clean up your past posts now.