checkjobs() now checks for the status of bg jobs and prints the status to the console