added some deck functionality and tests