-- 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
