isRepeated() added to Solver and some cleaning in Board