added method for getting a safe location to teleport