Changed addWord to accept a degree measure instead of an array