fixed unneeded code that compiler checks already.  Fixed array so it cant go past array