Handling entity movement