generateCards function added and tested