Refactor checkTwoInARow strategy.