Try writing the code for an autopilot some time. It's hard. We spend a lot of time flight testing just the autopilot.
Making something go in a particular direction at a particular altitude at a particular speed is hard enough. Throw in a stall and the best the plane can do is try to nose down.