added score calculation and display