Pakistan still requires 510 runs to win with eight wickets left behind