refactor three_by_three_after_one_move