search for a line/column/diagonal containing specific values with redundance