tic tac toe in Python using Django