Write a program that checks the result of one tic tac toe game. The board is a 3x3 grid, and each cell is empty or holds an X or an O. A player wins when three equal symbols stand in one row, in one column, or on one diagonal, and the game then ends with a winner. The three boards below are finished with a winner. Empty cells are written as dots.
X.X OX. .X.
OOO .O. .X.
... X.O .XO
The next three boards have no winner.
OXO X.. ...
XXO O.O .X.
OOX .XX ..O
Three dots in a line do not count as a win.