Stokes took the game away from South Africa at Newlands