- added scoring logic