A python program which teaches itself how to play TicTacToe