Command-line based Tic Tac Toe game which is unbeatable