Solve gem's path for not only ujihisa's but anyone's