This is a two player game. Players alternate placing Xs and Os on the board until either (a) one player has three in a row, horizontally, vertically or diagonally; or (b) all nine squares are filled. If a player is able to draw three Xs or three Os in a row, that player wins.
- Initilize a variable turn="O".
- Display matrix of the game.
- Get input from the first player.
- Use another function (game_brain()) to see if vertical/horizontal/diagonals contains same string or not.
- If not, give turn to 2nd player by assingning turn="X".
- repeat same for second player.