added a condition in case stack.cards is nil
added ReadMe