added getNumberOfCards() method and set default numberOfCards value to 2