Well, it seems it keeps clearing the entire array in my full script, so I begin to think something in my full script is causing it...
I luckily have a teacher at my school who can browse trough my whole code, so I will try that.
Arcticwarrio; thank you for your help, now I understand some more about it and might be of support later on.