I found the issue, the player dice tries to find the value of the enemy dice but at that point the enemy dice auto destroys before that and the game crashes, sorry, i'll fix this and upload the new version when the jam ends.