I write this naive code to predict the possible next state (movement) to solve the ToH problem. My code successfully predicted the first two states, but a bug appeared after I t