finished score and print function