fixed a bug in the deck array