Why am I able to add values that are out of bounds of my array index?[SOLVED]