Brute force solving for a 9x9 puzzle of cards