implemented get_players() function