Recursive no longer shifts an extra number into the array