added tests for score words
solution to problem 22