Added luminance detection for the foreground color of the scoreboard