having issues with the scoring. can't get my score function to behave properly.