began translating tictactoe.py