Solving nonogram