Java Picross Solver