Teleportation code and effects working