local function y(y)for k,S in ipairs(availableMaps)do if S==y then if not mapVotes[S]then mapVotes[S]=0 end mapVotes[S]=mapVotes[S]+1 break end end end
-- Function to handle button clicks
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
