Added a loop check for 0 players