Fixed logic errors that were slowing it down and keeping us from solving
the puzzel correctly. It works now and is much faster. About 10 minutes
to run.