Ad Hoc Teamwork in Variations of the Pursuit Domain