Adding tower of hanoi recursive code snippet