Add MIT License
Separate out and add a unit test for score calculation