Refactor TE and Entity movement for saving by reference coord to be in a method