refactor assignment of newcolor in background randomizer