Some solution for tictactoe.