added score display function