is solved checks first if board is complete and then if board is valid