func findIndexByPlayerID(id string) int {
	for index, player := range queue {
		if player.UserID == id {
			return index
		}
	}
	return -1
}
// Returns the index of a player in the queue
// Returns -1 when no player is found
Returns the index of a player in the queue
Returns -1 when no player is found
// Returns the index of a player in the queue // Returns - 1 when no player is found
func findIndexByPlayerID(id string) int {
	for index, player := range queue {
		if player.UserID == id {
			return index
		}
	}
	return -1
}
func findIndexByPlayerID ( id string ) int { for index , player := range queue { if player . UserID == id { return index } } return - 1 }
Returns the index of a player in the queue
Returns -1 when no player is found
Returns the index of a player in the queue Returns - 1 when no player is found