tic tac toe homework assignment