Tic Tac Toe, taken from tutorial.