Adding check for solved board.