Correcting an error calling splitDeck