print "it worked" if matrix_ok(\@matrix);