Cleaned up some code. Added ability to dump all sequences of matching tiles