scoring update

scoring is now functional, and the max score can be modified in
preferences.