refactoring scoring implementation
hope this works
hope this works 2