Sequential price setting SPNE
Your logic is correct. You need one more step. Using the same logic you can show that, in any SPNE, firm $A$ must set a price greater than the price that maximizes $B$'s profits. Firm $B$ then chooses such price.