we need to implement the tic tac toe problem for N*N matrix
If we get 3 continuously pattern either horizontally or vertically or digonally. We will consider as 1 point for that pattern.
Here winner is X (points gain by X =2) and (points gain by O =0)