SA v Sri Lanka: Drama unfolds in second Test battle