Altered attack validation code to automatically detect the attacker and defender, and their corresponding dice