C++/JAVA Chess Engine