add ai logic for enemy