Game of tic tac toe written in Python