Enemy subs don't seem to use changes of depth to avoid torpedoes. I'm guessing that's a temporary thing related to them burying their heads in the sand or diving below crush depth which they also don't do anymore.
AI is hard to get right (it's also hard to get wrong, flawless AI is pretty easy to achieve but even less fun)
It'll come good