trying to make path finding work