changed find entity function, changed logic door to block ai units