added check for validity of destinations and hook for moveAStar with greedy lights