Updated code for attack and defense rolls