Tic Tac Toe written in T-SQL (SQL Server 2008)