changed foundSoFar var, changed line 117 to pass the array