Made it so that the compression function resets found_match with each iteration of its main loop