execute if score global undoStackHead matches 21 run function bd:game/record_undo/21
execute if score global undoStackHead matches 22 run function bd:game/record_undo/22
execute if score global undoStackHead matches 23 run function bd:game/record_undo/23
execute if score global undoStackHead matches 24 run function bd:game/record_undo/24
execute if score global undoStackHead matches 25 run function bd:game/record_undo/25
execute if score global undoStackHead matches 26 run function bd:game/record_undo/26
execute if score global undoStackHead matches 27 run function bd:game/record_undo/27
execute if score global undoStackHead matches 28 run function bd:game/record_undo/28
execute if score global undoStackHead matches 29 run function bd:game/record_undo/29
execute if score global undoStackHead matches 30 run function bd:game/record_undo/30