Moved print deck to it's own function.
minor tweaking
added and removed test code to make sure I understand how the various loops are working.  The end result is much the same as the beginning.