New version that prevents crashes on cases where there is an action
after the game ends.
Test function in test_all has been added, it loops over a new folder
with replays (some of my own collection) and checks the consistency
of the new structures: num_hotkeys_used and hotkeys_used