what is the best way to solve this problem ? game theory? we have N*M empty grid and we have two players [cut] each player in his turn take an empty cell and put "X" in it [cut] game end when a player can make line with three "X" (like tik-tak-too game) [cut] players play optimally [cut] so who is the winier in this game? [cut]