Islamabad outplay Quetta in thrilling contest to secure playoff spot