func DeletePlayer(id string) error {
	index := findIndexByPlayerID(id)
	if index == -1 {
		return ErrorPlayerNotFound
	}

	queue = append(queue[:index], queue[index+1:]...)

	return nil
}
// DeletePlayer deletes the player with the given id from the queue
DeletePlayer deletes the player with the given id from the queue
// DeletePlayer deletes the player with the given id from the queue
func DeletePlayer(id string) error {
	index := findIndexByPlayerID(id)
	if index == -1 {
		return ErrorPlayerNotFound
	}
	queue = append(queue[:index], queue[index+1:]...)
	return nil
}
func DeletePlayer ( id string ) error { index := findIndexByPlayerID ( id ) if index == - 1 { return ErrorPlayerNotFound } queue = append ( queue [ : index ] , queue [ index + 1 : ] ... ) return nil }
DeletePlayer deletes the player with the given id from the queue
DeletePlayer deletes the player with the given id from the queue