implemented brain for enemy output