fixed spade bug

I believe the original spade error was caused by switch statement in
main.js -- not exactly sure how that cascaded to sometimes crash
webserver.  cardDeck now has cards. One can draw cards, and shuffle the
deck.