title @a[tag=inControl] actionbar [""]

kill @e[type=snow_golem]

scoreboard players set global hitCone 0
scoreboard players set global victoryState 0
scoreboard players set global availableResets -1
scoreboard players set global exitEnabled 1

#level index again
execute if score global currentLevel matches 1 run function bd:levels/level_setup/fingermaps/1
execute if score global currentLevel matches 101..404 unless score global fastLoad matches 1.. run function bd:levels/level_setup/fingermaps/titles
execute if score global currentLevel matches 999 run function bd:levels/level_setup/fingermaps/999

execute if score global currentLevel matches 1001..1007 run scoreboard players set global exitEnabled 0
execute if score global currentLevel matches 1008 run function bd:game/end_tutorial

execute if score global currentLevel matches 2001 run function bd:levels/level_setup/dozeoff/2001
execute if score global currentLevel matches 2101..2505 unless score global fastLoad matches 1.. run function bd:levels/level_setup/dozeoff/titles
execute if score global currentLevel matches 2999 run function bd:levels/level_setup/dozeoff/2999

execute if score global currentLevel matches 3000 run function bd:levels/level_setup/challenge/3000
execute if score global currentLevel matches 3001..3010 unless score global fastLoad matches 1.. run function bd:levels/level_setup/challenge/titles
execute if score global currentLevel matches 3999 run function bd:levels/level_setup/challenge/3999
