Don't hesitate to take the opportunity to make good variable names following PSR: $scoreDisplay (here it is self-contained in the function) and $displayType, and also $ignoreScoreColor