Entity class built. Teleport function defined.