Refactor winning cell positions for any size board