showScore function created