Avoiding moving into void space
Implementing teleport