it detects winner on a horizontal win