Creates method to generate cards info and add GUI as listener for buttons on cardlist