Complete Smart Tic Tac Toe program