check_file()

made my code into a function to be called whenever the user inputs
something