11.09.2013, 18:53
When it's declared with size 2, it means 0,1. When the element at the index is 2 will result to an array index out of bounds like Macluawn already said.
You should start from 0, not from 1. Indexes at Pawn starts from 0.
You should start from 0, not from 1. Indexes at Pawn starts from 0.