Cleaned up unncesary code, changed how teleportation works, now capable
of 27 directions in 3D instead of 4 directions in 2D