node implementation of ultimate tic tac toe (as seen on Hacker News)