The easiest way probably depends on how you're checking the vertical and horizontal.
What's your board structure? How are you checking for vertical and horizontal completions?
What's your board structure? How are you checking for vertical and horizontal completions?