What Pakistan needs to do is:
1) Break off from KSA influence, they have only caused terrorism in our country. However, be good with them if they do stuff according to our interests.
2) Forget religion in geopolitics.
3) Mend relationship with Israel which in return will get us closer to USA.
4) Have positive relationship with both USA and China.
5) Don't go full on in China camp, balance between both USA and China.
6) Go hardcore in terms of developing Gwadar and finishing CPEC phases, have influence over all central asian countries.
7) Accept current LOC as perma borders with India after they accept revisation of indus water treaty (make it more in our favour)
8) Ask China to divert both rivers which are going from Tibet to Kashmir region... direct to GB (Don't know how feasible is this)