updated tic tac toe code-- added code for the function reset()