some code cleanup before creating the build route
created the deck build route
more cleanup and consolidation