OCaml tic-tac-toe implementation