func AddPlayer(player *Player) error {
	if !validateUserExist(player.UserID){
		return ErrorUserNotFound
	}

	if InQueue(player.UserID){
		return ErrorAlreadyInQueue
	}

	queue = append(queue, player)
	return checkQueue()
}
// AddPlayer append a player to the queue
AddPlayer append a player to the queue
// AddPlayer append a player to the queue
func AddPlayer(player *Player) error {
	if !validateUserExist(player.UserID){
		return ErrorUserNotFound
	}
	if InQueue(player.UserID){
		return ErrorAlreadyInQueue
	}
	queue = append(queue, player)
	return checkQueue()
}
func AddPlayer ( player * Player ) error { if ! validateUserExist ( player . UserID ) { return ErrorUserNotFound } if InQueue ( player . UserID ) { return ErrorAlreadyInQueue } queue = append ( queue , player ) return checkQueue ( ) }
AddPlayer append a player to the queue
AddPlayer append a player to the queue