"Relocate" because, if you analyze the code, the loop continues as long the sprite is touching something, and what it does is to "relocate" the sprite until he's not touching anything. And read again: Dummy code. Optimize it depends on how you're setting things up.