Ok I did not really take the time to figure out how it work but the idea is that the player roll 9d6 and arrange them into a square to create spells. Each round he can turn a d6 or reroll a row.
You can programm each triple number with a different spell (111, 222, 333, etc...)
Having multiple row of similar numbers in your square boost your spell effect.
Series of number also have different effects.
Each cube matrix is unique, when you level up you can craft new cube stones to customize your cube matrix. You can also find new cube stones as treasures.
I guess that some combinaisons or patterns can be dangerous.