Tic-tac-toe on the command-line via nodejs readline