Magic the gathering cardpool in Ruby on Rails