Solves the 3x3 edge-matching tile puzzle