Using a map for converting rows of winning sets