minimally ported, ugly-output tictactoe player