It looks like the minigame doesn't set anything that you can use to tell who won the game after the minigame scene ends. Luckily you can add that yourself very easily.
After a round is completed go ahead and add the winner info to a game variable.
Hosting scripts and plugins of all kinds. Contribute to mjshi/RPGMakerRepo development by creating an account on GitHub.
github.com
On the above line (923) of the script just add the code
Code:
$gameVariables.setValue(NUMBER, $gameVariables.value(NUMBER) + winner[0]));
Where NUMBER is the variable number you want to use.
Then in your event that calls the minigame you can check if the variable is > 0 (the player won the most rounds overall) or less than 0 (the player lost more rounds) and handle the player death or npc movement in each branch. Of course it will be zero if there were only ties or equal losses and wins but that's up to you to decide if that constitutes a loss or a win.
Also with this method of incrementing the game variable I suggest setting your variable to 0 before calling the minigame. You could also just set the variable instead of adding to it if you're not running multiple rounds. ie
$gameVariables.setValue(NUMBER, winner[0]);
Hope this helps!