HW3 tic tac toe