Fixing empty deck error