Implement a global map of entities, which allows referencing by either position or ID and updating the positions of existent entities, and put the character in there.