TicTacToe in jQuery/Javascript