You're not allowed to define text objects inside a function. You should instead:

1. Define a text object outside with three strings.
2. Write your function win_choice and in this function copy the strings you got as an argument to the text. You can use the str_cpy command for that.


Always learn from history, to be sure you make the same mistakes again...