changed score logic to better plug into UI