Fixed a bug where the loop for arrows would go out of bounds.