add start and goal judge.