C Tic Tac Toe game in command line