solitaire game by scala.js