You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: oscar503sv.go
    path of file: ./repos/retos-programacion-2023/Retos/Reto #2 - EL PARTIDO DE TENIS [Media]/go
    
    the code of the file until where you have to start completion: package main

import (
	"fmt"
)

/*
 * Escribe un programa que muestre cómo transcurre un juego de tenis y quién lo ha ganado.
 * El pro
    
func playTennis(sequence []string) string {
	player1Score, player2Score := 0, 0

	for _, point := range sequence {
		if point == "P1" {
			player1Score++
		} else if point == "P2" {
			player2Score++
		} else {
			return "Error: Entrada inválida"
		}

		currentScore := displayScore(player1Score, player2Score)
		fmt.Println(currentScore)

		if currentScore == "Ha ganado el P1" || currentScore == "Ha ganado el P2" {
			return currentScore
		}
	}

	return ""
}