added APIs for Board.java and Solver.java