Used filter to choose appropriate win patterns.