Cleaned up solitare.js and it works now.

I forgot about pass by reference vs pass by value.  It is fixed now.