an improved version of tic-tac-toe