Fixing the recoloring of div elements for each of the teams