Checking if the battery is good