reversi in node js