Good comments already
Or set a marker like hasCollided=true;
And then evaluate it so that it cannot move when it’s true