Chess AI in Java