c language course design tic-tac-toe