Isn't `$prevCreature` a reference to the same value as `$creature`? Their locationx and locationy are always the same.