Update tictactoe.py

fixed various bugs and increased functionality