Solving nonograms using neural networks