Partial towers of hanoi problem