Changed 'len' variable to be global instead of local
Declared len as a global variable but still usable within main function

(ACTUALLY JUST TOOK A SHARP INTAKE OF BREATH BECAUSE I DID IT)