Created a working tic-tac-toe ai and fixed some bugs in the initial code for that problem