To prevent the potatoes from sticking to the pan, it's important to make sure they are coated well in the sauce and that the pan is well-greased or lined with parchment paper. Stirring the potatoes occasionally while they cook will also help to prevent sticking.