local function z(z)for y,H in ipairs(availableMaps)do if H==z then if not mapVotes[H]then mapVotes[H]=0 end mapVotes[H]=mapVotes[H]+1 break end end end

local function castVote(mapName)
	-- Check if the map name is valid
	for _, map in ipairs(availableMaps) do
		if map == mapName then
			-- Increment the vote count for the selected map
			if not mapVotes[map] then
				mapVotes[map] = 0
			end
			mapVotes[map] = mapVotes[map] + 1
			break
		end
	end
end
