adds tasks
refactors solitaire javascript