Fix bug in winning patterns