Refactor winning combinations to be usable by any size board