adding scoring functionality, but not quite there