Finished the getScore method but did not compile or test it yet.