hanoi State: added isGoalState()