implemented entity ai