moved DeckAdapter to it's own class.