scoreboard players add random_map option 1
execute if score random_map option matches 2.. run scoreboard players set random_map option 0

execute at @s if score random_map option matches 0 run function subchronos:lobby/options/random_map/off
execute at @s if score random_map option matches 1 run function subchronos:lobby/options/random_map/on