fixed the duplicate number code to exit the program upon finding a duplicate. (previously it was still running the code and exiting after giving the number of matches)