Added a check_for_files function and made give() use it