adds the function that ends the timer when all items are crossed out