made more changes and added Deck class