implementing a wolf hunting behavior AI with phaser.js