Python : writing codes: A Tic Tac Game