path finding implemented