added looping through players