checks if there is a winner horizontally
checks if there is a winner vertically