Array of cards added

Array of cards added, with all the changes that entails, along with tidying up of the variable declaration.