Update calculateAttack.php