I understand this is a common error but I can't figure out why I am receiving it:
Thread 1 EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)
You need to make sure
globalVariable.specialBool have the same count. Otherwise, the access to
globalVariable.specialBool will crash.
while i <= xxxx probably needs to be changed to
while i < xxxx because array index is zero based.