working logic for all first column win combinations