Pacman: refactoring and some power pellet effects.