Changed foreach loop in Scanner. Will now break the inner loop if a file is added to filesToCopy