execute if score global undoStackHead matches 31 run function bd:game/record_undo/31
execute if score global undoStackHead matches 32 run function bd:game/record_undo/32
execute if score global undoStackHead matches 33 run function bd:game/record_undo/33
execute if score global undoStackHead matches 34 run function bd:game/record_undo/34
execute if score global undoStackHead matches 35 run function bd:game/record_undo/35
execute if score global undoStackHead matches 36 run function bd:game/record_undo/36
execute if score global undoStackHead matches 37 run function bd:game/record_undo/37
execute if score global undoStackHead matches 38 run function bd:game/record_undo/38
execute if score global undoStackHead matches 39 run function bd:game/record_undo/39
execute if score global undoStackHead matches 40 run function bd:game/record_undo/40