checking for winner works for some patterns