Adding algorithm to map board entries to winning sets