moved calculate component score functionality to Token.java