Adding code for determining if a board is solved.