added some ai code to the enemy