Fixed minor bug where it would traverse an extra space instead of returning the optium path.