Two late wickets for South Australia tilted the game back their way after a 99-run stand between Tim Ward and Jake Doran