A Javascript implementation of tic-tac-toe based on provided specs.