I'm not sure but perhaps I neglected to define a boundary for the array iteration or something like that. Weird, the code works, but somehow I managed to mess up anyway. COuld someone explain what it does mean?