added simple score display at the end and on the terminal