external chess algorithm handling improved