fixed math game to work in node