Added a score function to be implemented shortly