Added best possible teleport location algorithm