There's more to just eating pellets and ghost. You eat dots as well and have to eat fruits to unlock more dots on each side of the course. There's also a time limit. So there's a lil more than you said.