You're the Pacman and you're trying to not get killed by the ghosts. If you collect all the coins, you progress to the next level. They get harder as you go along.
The first level is figured out, but I'm working on the second.