Place dots around the maze and the ball will follow them. The last dot must be on the exit. Make sure the ball doesn't hit the walls. When you get to the parts with the doors, your timing will have to be very good.
Use the mouse to place the dots. When you are out to dots, the ball starts rolling.