converted addWeapon and removeWeapon to their symbolic equivalents