tic-tac-toe-steps modified