robot(greedy and a*)