JS function to assign colors to the different players userId