Stag hunt function added