Transferring the earlier 2-player command-line math game to node.js