McStay keeps Pies alive with a fourth