Fixed tab to toggle players (limited to 2) and added a loop function replacing for loops.