Those aren't goals, those are checkpoints. The mechanic is that the floor isn't real sometimes, but you aren't looking for "the end of the level." It's just a ball yeet game.