Source: https://www.pedagogie.ac-nice.fr/mathematiques/wp-content/uploads/sites/30/2020/04/Jeu_de_Nim_Scratch_SE_final.pdf