Work your way around the maze collecting the yellow pellets while avoiding the ghosts. The red pellets will give you the ability to gobble up the ghosts.
The white orbs will warp you to a different area of the maze.