jshint made me break my code. Change logic to fix usedBackgroundColors and make jshint happy