generate winning positions a bit less messy