Mathdoku solver in java