Tic Tac Toe code in C