A Simple Javascript TicTacToe implementation