Trying to figure out how to fix the broken scoring code