An attempt at writing the game of solitaire for js1k