Solve HanoiTowers problem using stacks as rods