-- Returns the names of the winner(s) according to most points scored

function PlayerManager.getWinnerNames()
	if #activePlayers >= 1 then
		local topScore = -1
		local winnerNames = {}
		
		for i, player in pairs(activePlayers) do
			local playerScore = leaderboardManager:getStat(player, "Points").Value 
			if playerScore then
				if playerScore > topScore then
					winnerNames = {player.Name}
				elseif playerScore == topScore then
					table.insert(winnerNames, player.Name)
				end
			end
		end
		
		return winnerNames
	else
		return {}	
	end
end
