Added basic scoring logic