add more test cases
add conditions for solved_col or solved_row equal 0