Using typeclasses to add game components