Tic Tac Toe Algorithm In C