Artificial Intelligence using Phaser Framework