able to pas the highest number. not able to grab next number in array