started implementing ttt4.py