tictactoe game implemented in c