First working version of tictac.py