Cleaner version of calculating scores