AI based solution for single player Tic-Tac-Toe game with 100% accuracy