Add logic to check if team coluors are light/dark

Chooses the correct text colour based on the team colour so the text
will be legible.