Error missing a bracket while all are present ( C# error )
<pre><code>using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Test
{
  class Program1
  {
    static void Main(string[] args)
    {
        public static char[,] board = new char[3,3];    //3x3 board game
        public static char? NULL = null;                //Null character
        public static const int COL = 3;                //Max # of columns
        public static const int ROW = 3;                //Max # of rows
        void drawBoard();
    }   

    public void drawBoard()                             //Method that draws board
    {
        for(int x = 0; ROW &lt; 3; x++)                                        
        {   
            Console.WriteLine("-------------");
            for(int y = 0; COL &lt; 3; y++)
            {
                Console.Write("|");
                if(board[i,j] == NULL)
                {
                    Console.Write(" ");
                }
                else
                {
                    Console.Write(" " + board[i,j] + " ");
                }
            }
            Console.WriteLine("|");
        }
        Console.WriteLine("-------------");
    }   
    }
}
</code></pre>

<p>I'm trying to write a tic-tac-toe game. I'm very new (started learning a few hours ago) to C# so I can't quite understand why my code contains errors and wouldn't compile. Also, if possible, can you explain the whole purpose of having a namespace in C# ? I don't quite understand what difference the name space would make. Thank you in advance for your time and assistance.</p>
