Implemented scoring.
Closes #2.