Sorry to bring this up again, but I decided to try to re-create the program, using the 2d array.
However, I ran into a slight problem. How will the permutation function have to be modified? I'm having issues trying to figure out how it works, and how it would need to be modified to use it correctly (I used it from a cookbook, and didn't bother figuring it out) -- http://mail.python.org/mailman/listinfo/python-list