Unbeatable tic tac toe with Python/Django