A*: print exit, RightHand: print steps