HOW A BMS PROTECTS A BATTERY