Tic-tac-toe CLI using node.js