refactor game logic to include a checkThreeCells function that checks a given array containing three cells to see if there is a win or not, the function is abstracted from the if else logic within from the original check functions
refactor game logic to include a checkThreeCells function that checks a given array containing three cells to see if there is a win or not, the function is abstracted from the if else logic within from the original check functions

hdngo/tic-tac-toe,hdngo/tic-tac-toe