Updated horizontal winning logic