making corrections to the last commit and add check for empty stacklist
in addCardToLastStack() to avoid arrayoutofboundsexception. Will use
addCard() if stacklist is empty (and therefor create a new stack)