"when Anandapala suffered the Shahis' most crushing defeat"