The Mathematics of Games and Puzzles: From Cards to