Python programs (Tic Tac Toe, table of squares)