To compete each level, you must make the ball reach the goal.
Click on any empty blue tile to mold the ground and force the ball to roll into the goal. Bounce off of walls to help guide the ball in. You will see that green tiles speed the ball up. Red tiles will slow the ball down and eventually suck the ball in. Use this to aim the ball. Use teleports to go from one area to another.