Updated vertical winning logic