[Fix] Check initial direction when looking for a safe teleport spot