added multi deck functionality