Chess Solver in Java