reset possible_steps for each iteration