updated scoring functionality
updating score functionality