Basically, when the ball is gray and collides with the ground, it changes a variable in the ground which causes the ground sprite to change, but the variable only changes after reseting play mode.
Why would this be happening? (I couldn’t explain it without the gif)