Chess library & test program with AI