Detect player movements through portals and trigger teleportation