Pair matching puzzle 2d