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

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