Added a scoring mechanism